﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.ProductionReturn
{
    public class ProductionReturninfoMap : IEntityTypeConfiguration<ProductionReturninfo>
    {
        public void Configure(EntityTypeBuilder<ProductionReturninfo> builder)
        {
            builder.ToTable("tb_ProductionReturninfo");
            builder.Property(m => m.Returnedmaterialnumber).HasComment("退料编号").HasColumnType("varchar(50)");
            builder.Property(m => m.Returnedmaterialname).HasComment("退料名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Returnperson).HasComment("退料人").HasColumnType("varchar(50)");
            builder.Property(m => m.Workordername).HasComment("工单名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Workordernumber).HasComment("工单编号").HasColumnType("varchar(50)");
            builder.Property(m => m.Taskname).HasComment("任务名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Missionnumber).HasComment("任务编号").HasColumnType("varchar(50)");
            builder.Property(m => m.Processroute).HasComment("工艺路线").HasColumnType("varchar(50)");
            builder.Property(m => m.Processname).HasComment("工序名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Remark).HasComment("备注").HasColumnType("varchar(200)");
        }
    }
}
